﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Account/Site.master" AutoEventWireup="true" CodeFile="HuongDanThanhToan.aspx.cs" Inherits="Administrator_KienThucVeMat" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" 
        Font-Size="0.8em" PathSeparator=" : " style="font-size: small">
        <CurrentNodeStyle ForeColor="#333333" />
        <NodeStyle Font-Bold="True" ForeColor="#284E98" />
        <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" />
        <RootNodeStyle Font-Bold="True" ForeColor="#507CD1" />
    </asp:SiteMapPath>
    <br />
    <asp:Label ID="Label1" runat="server" 
        style="font-size: x-large; font-weight: 700" 
        Text="Quản lý hướng dẫn đăng ký"></asp:Label>
    <br />
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectServer %>" 
        DeleteCommand="DELETE FROM [KienThucVeMat] WHERE [ID] = @ID" 
        InsertCommand="INSERT INTO [KienThucVeMat] ([AnhDaiDien], [TieuDe], [NoiDung], [GioiThieu]) VALUES (@AnhDaiDien, @TieuDe, @NoiDung, @GioiThieu)" 
        SelectCommand="SELECT * FROM [KienThucVeMat]" 
        UpdateCommand="UPDATE [KienThucVeMat] SET [AnhDaiDien] = @AnhDaiDien, [TieuDe] = @TieuDe, [NoiDung] = @NoiDung, [GioiThieu] = @GioiThieu WHERE [ID] = @ID">
        <DeleteParameters>
            <asp:Parameter Name="ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="AnhDaiDien" Type="String" />
            <asp:Parameter Name="TieuDe" Type="String" />
            <asp:Parameter Name="NoiDung" Type="String" />
            <asp:Parameter Name="GioiThieu" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="AnhDaiDien" Type="String" />
            <asp:Parameter Name="TieuDe" Type="String" />
            <asp:Parameter Name="NoiDung" Type="String" />
            <asp:Parameter Name="GioiThieu" Type="String" />
            <asp:Parameter Name="ID" Type="Int32" />
        </UpdateParameters>
    </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID" 
                DataSourceID="SqlDataSource1" EnableModelValidation="True" 
                onselectedindexchanging="GridView1_SelectedIndexChanging1" 
        Width="100%" CellPadding="3" BackColor="White" BorderColor="#CCCCCC" 
        BorderStyle="None" BorderWidth="1px">
                <Columns>
                    <asp:CommandField ShowDeleteButton="True" ShowSelectButton="True" />
                    <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                        ReadOnly="True" SortExpression="ID" />
                    <asp:BoundField DataField="TieuDe" HeaderText="Tiêu đề" 
                        SortExpression="Tiêu đề" >
                    <ItemStyle Width="80%" />
                    </asp:BoundField>
                </Columns>
                <EmptyDataTemplate>
                    Không có dữ liệu (Click tạo mới)
                </EmptyDataTemplate>
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <RowStyle ForeColor="#000066" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
            <asp:LinkButton ID="LinkButton1" runat="server" 
                PostBackUrl="~/Administrator/ctKienThucVeMat.aspx" >Tạo mới</asp:LinkButton>
        </asp:Content>

